import request from "@/utils/request";

// 查询交易市场手续费分红日志列表
export function listMallMarketServiceRecord(query) {
  return request({
    url: "/mall/mallMarketServiceRecord/list",
    method: "get",
    params: query,
  });
}

// 查询交易市场手续费分红日志详细
export function getMallMarketServiceRecord(id) {
  return request({
    url: "/mall/mallMarketServiceRecord/" + id,
    method: "get",
  });
}

// 新增交易市场手续费分红日志
export function addMallMarketServiceRecord(data) {
  return request({
    url: "/mall/mallMarketServiceRecord",
    method: "post",
    data: data,
  });
}

// 修改交易市场手续费分红日志
export function updateMallMarketServiceRecord(data) {
  return request({
    url: "/mall/mallMarketServiceRecord",
    method: "put",
    data: data,
  });
}

// 删除交易市场手续费分红日志
export function delMallMarketServiceRecord(id) {
  return request({
    url: "/mall/mallMarketServiceRecord/" + id,
    method: "delete",
  });
}

// 分红
export function bonusMallMarketServiceRecord(params) {
  return request({
    url: "/mall/mallMarketServiceRecord/divide",
    method: "get",
    params,
  });
}
